//
//  B_IntegralDetailListVC.m
//  DreamOf
//
//  Created by 薛小刚 on 2018/8/27.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import "B_IntegralDetailListVC.h"
#import "B_IntegralInComeVC.h"
#import "B_IntegralExpendVC.h"
#import "MainSelectTypeViewController.h"

@interface B_IntegralDetailListVC ()
@property (nonatomic, strong) MainSelectTypeViewController * mainPage;

@end

@implementation B_IntegralDetailListVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setTitle:@"积分明细"];
    self.mainPage.view.hidden = NO;
}

- (MainSelectTypeViewController *)mainPage {
    if (!_mainPage) {
        //        WeakSelf(weSelf, self);
        _mainPage = [[MainSelectTypeViewController alloc] initWithFrame:CGRectMake(0, 5, SCREEN_WIDTH, SCREEN_HEIGHT_X - 64 - 5) titleArray:nil];
        [self.view addSubview:self.mainPage.view];
        [self addChildViewController:_mainPage];
        _mainPage.titleArray = @[@"收入", @"支出"];
        B_IntegralInComeVC * inCome = [[B_IntegralInComeVC alloc] init];
        B_IntegralExpendVC * expend = [[B_IntegralExpendVC alloc] init];
        _mainPage.viewControllers = @[inCome, expend];
        _mainPage.block = ^(NSInteger index) {
            
        };
    }
    return _mainPage;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
